package com.sf.fy.uav.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sf.fy.uav.entity.OrderCommodity;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * <p>
 * 订单商品关联表 服务类
 * </p>
 *
 * @author LTQ
 * @since 2023-12-12
 */
public interface IOrderCommodityService extends IService<OrderCommodity> {

    /**
     * 通过订单号获取
     * @param orderSn
     * @return
     */
    List<OrderCommodity> getByOrderSn(@RequestParam String orderSn);

    /**
     * 通过订单号数组查询
     * @param orderSns
     * @return
     */
    List<OrderCommodity> getByOrderSns(@RequestParam List<String> orderSns);
}
